<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<h1>姓名：{{ Name }}</h1>
			<h1>年龄：{{ Age }}</h1>
			<h1>学校：{{ School }}</h1>
		</div>

		<script type="text/javascript">
			/*
		// Model
		var data = {
			Name: '小明',
			Age: 18,
			School:'光明小学',
		}

		// ViewModel
		var vue = new Vue({
			el: '#app',
			data: data,
		});
		*/


			function A(callback) {
				console.log("I am A");
				callback(); //调用该函数
			}

			function B() {
				console.log("I am B");
			}

			A(B);

			let girlName = "裘千尺"
			function hr(callBack) {
				setTimeout(() => {
					girlName = "黄蓉"
					console.log('我是黄蓉');
					callBack()
				}, 0);
			}

			function gj() {
				console.log(`${girlName}你好，我是郭靖，认识一下吧`);
			}
			hr(gj)
		</script>
	</body>
</html>
